<template>
  <el-dialog title="预览" width="700px"  :visible="visible" @close="handleClose">
    <iframe width="100%" height="500" :src="data" frameborder="0"></iframe>
  </el-dialog>
</template>

<script>
  export default {
    props: ['visible', 'data'],
    data () {
      return {

      }
    },
    methods: {
      handleClose() {
        this.$emit('update:visible', false);
      }
    }
  }
</script>

<style>

 
</style>
